//
//  ChongZhiButton.m
//  firstpoint
//
//  Created by 泽中 on 2017/7/19.
//  Copyright © 2017年 xzcysoft. All rights reserved.
//

#import "ChongZhiButton.h"

@implementation ChongZhiButton

- (instancetype)initWithFrame:(CGRect)frame {
    if (self = [super initWithFrame:frame]) {
        self.backgroundColor=[UIColor whiteColor];
        _imgView=[[UIImageView alloc]initWithFrame:CGRectMake(10, 10, 25, 25)];
        [self addSubview:_imgView];
        
        _label=[[UILabel alloc]initWithFrame:CGRectMake(50, 0, 100, self.mj_h)];
        _label.font=[UIFont systemFontOfSize:14];
        [self addSubview:_label];
        
        _button=[UIButton buttonWithType:UIButtonTypeCustom];
        _button.frame=CGRectMake(0, 0, self.mj_w, self.mj_h);
        [self addSubview:_button];
    }
    return self;
}

@end
